package com.his.registration.mapper;

import com.his.dto.Doctor;
import jdk.nashorn.internal.objects.annotations.Setter;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @BelongsProject: workspace-idea
 * @BelongsPackage: com.his.registration.mapper
 * @Author: ZhangYing
 * @Date: 2023/7/1 18:34
 * @Description:
 */
@Mapper
public interface SchedulingMapper {
    //医生表和值班表两表联查得到医生的值班信息
    @Select("select e.realname,s.week_rule from employee e,scheduling s where e.scheduling_id=s.id and regist_level_id=#{registLevelId} and deptment_id=#{deptId}")
    public List<Doctor> getScheduling(int registLevelId,int deptId);
}
